package com.imdroid.notification;

public class NTeamDestination extends Notification {
	/**
	 * Team Destination
	 */
	private String destination;

	/**
	 * The longitude of the destination
	 */
	private float teamDestinationLon;

	/**
	 * The latitude of the destination
	 */
	private float teamDestinationLat;

	/**
	 * if need to search route when setting the destination
	 */
	private boolean searchRoute;

	/**
	 * 
	 */
	public NTeamDestination(String destination, float teamDestinationLat,
			float teamDestinationLon, boolean searchRoute) {
		this.destination = destination;
		this.teamDestinationLat = teamDestinationLat;
		this.teamDestinationLon = teamDestinationLon;
		this.searchRoute = searchRoute;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.imdroid.notification.Notification#getHeader()
	 */
	protected int getHeader() {
		return NOTIFICATION_TeamDestination;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.imdroid.notification.Notification#getBody()
	 */
	protected String getBody() {
		return ((destination != null) ? destination.trim() : "") + "&&"
				+ teamDestinationLat + "&&" + teamDestinationLon + "&&"
				+ (searchRoute ? "1" : "0");
	}

}
